/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.dao;

import com.xy.biz.base.domain.po.BomGoodsPO;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2021-12-28
 */
public interface BomGoodsDao {

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllBomGoods(Collection<BomGoodsPO> collection);

	/**
	 * 更新
	 *
	 * @param bomGoodsPO
	 */
	int updateBomGoods(BomGoodsPO bomGoodsPO);

	/**
	 * 删除
	 *
	 * @param bomGoodsId
	 */
	int deleteBomGoods(Long bomGoodsId);
	int deleteBomGoodsByBomId(Long bomId);

	/**
	 * 查找一个
	 *
	 * @param bomGoodsId
	 * @return
	 */
	BomGoodsPO getBomGoods(Long bomGoodsId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<BomGoodsPO> listBomGoodsByBomId(Collection<Long> collection);

}
